<?php

Yii::import('common.models._base.BaseHaLogins');

class HaLogins extends BaseHaLogins
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	public static function saveUser($user_id,$user_email,$login_provider) {
		$modelHaLogins = new HaLogins;
		$modelHaLogins->setAttribute('userId', $user_id);
		$modelHaLogins->setAttribute('login_provider', $login_provider);
		$modelHaLogins->setAttribute('login_provider_identifier', $user_email);
		$modelHaLogins->save(false);
	}

}